package com.efast.cafe.portal.service.base;



import java.util.List;
import java.util.Map;

import com.efast.cafe.framework.pager.Pagination;
import com.efast.cafe.framework.service.ICafeService;
import com.efast.cafe.portal.bean.base.PortalParameterQueryBean;
import com.efast.cafe.portal.entity.base.PortalBaseParameter;
import com.efast.cafe.portal.remote.base.PortalBaseParameterService;

/**
 * ****************************************************************************
 * @File name   :      BaseParameterService.java
 *
 * @Author      :      qubibo
 *
 * @Date        :      2016-6-7
 *
 * @Copyright Notice: 
 * Copyright (c) 2016 Efast Serv. All  Rights Reserved.
 * This software is published under the terms of the Efast Software
 * License version 1.0, a copy of which has been included with this
 * distribution in the LICENSE.txt file.
 * 
 * 
 * ----------------------------------------------------------------------------
 * Date                   Who         Version        Comments
 * 2016-6-7 上午10:54:53        qubibo     1.0            Initial Version
 ****************************************************************************
 */
public interface IPortalBaseParameterService extends PortalBaseParameterService{
	
	/**
	 * 分页条件查询
	 * @Date        :      2016-6-7
	 * @param pager
	 * @param searchValue
	 * @return
	 */
	public Pagination<PortalBaseParameter> queryListBaseParameter(Pagination<PortalBaseParameter> pager,PortalParameterQueryBean bean);
	/**
	 * 删除参数  把valid从0设为1
	 * @Date        :      2016-6-7
	 * @param id
	 */
	public void del(Long id);
	
	/**
	 * 新增参数
	 * @param role
	 */
	public Long insert(PortalBaseParameter portalBaseParameter);
	
	/**
	 * 修改参数
	 * @param role
	 */
	public void update(PortalBaseParameter portalBaseParameter);
	
	/**
	 * 通过id获取参数属性
	 * @Date        :      2016-6-16
	 * @param portalBaseParameterId
	 * @return
	 */
	public PortalBaseParameter queryBaseParameterById(Long portalBaseParameterId);
	
	/**
	 * 分页条件查询
	 * @Date        :      2016-6-7
	 * @param pager
	 * @param searchValue
	 * @return
	 */
	public Pagination<PortalBaseParameter> queryListBaseParameterUser(Pagination<PortalBaseParameter> pager,String searchValue);
	
	/**
	 * 企业级修改
	 * @Date        :      2016-6-27
	 * @param portalBaseParameter
	 */
	public void updateParameterByUser(PortalBaseParameter portalBaseParameter) ;
	
	/**
	 * 分页条件查询
	 * @Date        :      2016-6-7
	 * @param pager
	 * @param searchValue
	 * @return
	 */
	public Pagination<PortalBaseParameter> queryListBaseParameterEnterprise(Pagination<PortalBaseParameter> pager,String searchValue);
	
	/**
	 * 企业级修改
	 * @Date        :      2016-6-27
	 * @param portalBaseParameter
	 */
	public void updateParameterByEnterprise(PortalBaseParameter portalBaseParameter) ;
	/**
	 * 企业级分页查看
	 * @Date        :      2016-7-11
	 * @param pager
	 * @param searchValue
	 * @return
	 */
	public Pagination<PortalBaseParameter> pageMapParameterByEnterprise(Pagination<PortalBaseParameter> pager,String searchValue);
	/**
	 * 用户级分页查看
	 * @Date        :      2016-7-11
	 * @param pager
	 * @param searchValue
	 * @return
	 */
	public Pagination<PortalBaseParameter> pageMapParameterByUser(Pagination<PortalBaseParameter> pager,String searchValue);
	
	
	/**
	 * 通过paramKey 查找参数信息
	 * @Date  : 2016-8-15
	 * @param paramKey
	 * @return
	 */
	public PortalBaseParameter queryByParamKey(String paramKey);
	
	
	
	public Long insertList(Map<String, String> map);
	
	public Long insertListMap(List<Map<String, String>> map);
}
